package org.skyui.core;

import java.util.Collection;

import org.skyui.beans.AbstractBean;

import com.vaadin.data.util.BeanItemContainer;

public class ControlledBeanItemContainer extends
		BeanItemContainer<AbstractBean> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2659624426228557434L;

	public ControlledBeanItemContainer(Class type) {
		super(type);
		Collection<String> propertyIds = getContainerPropertyIds();
		try {
			propertyIds.remove(((AbstractBean) type.newInstance())
					.getDontShowInBriefViewSet());
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

	@Override
	public Collection<String> getContainerPropertyIds() {
		// TODO Auto-generated method stub
		return super.getContainerPropertyIds();

	}

}
